<template>
  <div class="nav-bar">
    <!-- 插槽 -->
    <div class="nav-bar-left">
      <slot name="left"></slot>
    </div>
    <div class="nav-bar-center">
      <slot name="center"></slot>
    </div>
    <div class="nav-bar-right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'navBar'
}

</script>
<style>
/* 公共导航栏 */
.nav-bar {
  display: flex;
  height: 45px;
  line-height: 45px;
  text-align: center;
  box-shadow: 0 1px 1px rgb(100, 100, 100, 0.3);
}
.nav-bar-left,
.nav-bar-right {
  width: 60px;
}
.nav-bar-center {
  flex: 1;
}
</style>